<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<!--th:replace="_fragments :: head(~{::title})"-->
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Joker的个人博客</title>
    <link rel="icon" th:href="@{/images/index.png}" sizes="32x32">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="../static/css/yiyan.css" th:href="@{/css/yiyan.css}">
    <link rel="stylesheet" href="../static/css/mouseeffect.css.css" th:href="@{/css/mouseeffect.css}">
</head>
<style>
    body {
        background: url('https://static.talkxj.com/config/1ecb6fc94e38c38713000efe37492e73.png') center center / cover no-repeat;
        background-attachment: fixed;
    }

    .typed-cursor {
        opacity: 1;
        -webkit-animation: blink 0.7s infinite;
        -moz-animation: blink 0.7s infinite;
        animation: blink 0.7s infinite;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    @-webkit-keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    @-moz-keyframes blink {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .t-hover-shadow {
        transition: transform .3s ease-in-out, box-shadow .3s cubic-bezier(.47, 0, .745, .715), border .3s linear .1s;
    }

    .t-hover-shadow:hover {
        box-shadow: 0 10px 50px rgba(51, 51, 51, .25);
        -webkit-transform: translateY(-10px);
        -moz-transform: translateY(-10px);
        transform: translateY(-10px)
    }

</style>
<body>
<!--头部抽取-->
<nav th:replace="_fragments :: menu(1)"></nav>


<p class="centtext" style="font-family: 楷体">Joker的个人博客</p>
<div class="cent">
    <span class="element"></span>
</div>


<div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
</div>
<!-- 中间内容 -->
<div id="foot" class="m-container  m-padded-tb-large "
     style="background-color: white; background: url('https://static.talkxj.com/config/a6f141372509365891081d755da963a1.png')center center / cover no-repeat; background-attachment: fixed;">
    <div class="ui container ">

        <div class="ui stackable grid">

            <!--左边博客部分-->
            <div class="eleven wide column">
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <h3 class="ui teal header">博客文章</h3>
                        </div>
                        <div class="column right aligned">
                            共<h2 class="ui red header m-inline-blok" th:text="${page.totalElements}">
                            14 </h2> 篇
                        </div>
                    </div>
                </div>

                <!--content-->
                <div class="ui attached segment ">
                    <div class="ui padded vertical segment m-padded-tb-large" th:each="blog : ${page.content}"
                         th:if="${blog.published}">
                        <div class="ui middle aligned mobile reversed stackable grid">
                            <div class="eleven wide column">
                                <h3 class="ui teal header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}"
                                                              target="_blank" style="color: black"
                                                              th:text="${blog.title}">
                                </a></h3>
                                <p class="m-text"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}"
                                                     th:text="|${blog.description}......|">
                                </a></p>
                                <div class="ui grid">
                                    <div class="eleven wide column">
                                        <div class="ui mini horizontal link list">
                                            <div class="item">
                                                <img src="https://unsplash.it/100/100?image=1005" alt=""
                                                     class="ui avatar image"
                                                     th:src="@{${blog.user.avatar}}">
                                                <div class="content"><a href="#" class="header"
                                                                        th:src="@{${blog.user.nickname}}"></a></div>
                                            </div>
                                            <div class="item">
                                                <i class="calendar icon"></i><span
                                                    th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}"></span>
                                            </div>
                                            <div class="item">
                                                <i class="eye icon"></i><span th:text="${blog.views}"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="right aligned five wide column">
                                        <a href="#" target="_blank" class="ui teal basic label m-padded-small"
                                           th:text="${blog.type.name}"></a>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column">
                                <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                    <img src="https://unsplash.it/800/450?image=1005" alt="" class="ui rounded image"
                                         th:src="@{${blog.firstPicture}}">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
                <!--footer-->
                <div class="ui bottom attached segment" th:if="${page.totalPages}>1">
                    <div class="ui middle aligned two column grid">
                        <div class="column">
                            <a href="#foot" th:href="@{/(page=${page.number}-1)}"
                               class="ui mini teal basic button"
                               th:unless="${page.first}">上一页</a>
                        </div>
                        <div class="column right aligned">
                            <a href="#foot" th:href="@{/(page=${page.number}+1)}"
                               class="ui mini teal basic button"
                               th:unless="${page.last}">下一页</a>
                        </div>
                    </div>
                </div>
            </div>
            <!--右边卡片部分-->
            <div class="five wide column">
                <!--分类-->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>分类
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{/types/-1}" target="_blank">more<i
                                        class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <div class="ui vertical fluid menu">
                            <a href="#" th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item"
                               th:each="type : ${types}">
                                <span th:text="${type.name}">学习日志</span>
                                <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blogs)}">
                                    13
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
                <!--标签-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment ">
                        <div class="ui two column grid">
                            <div class="column ">
                                <i class="tags icon"></i>标签
                            </div>
                            <div class="right aligned column ">
                                <a href="#" th:href="@{/tags/-1}" target="_blank">more<i
                                        class="angle double right icon "></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" target="_blank"
                           class="ui teal basic left pointing label m-padded-tb-tiny" th:each="tag : ${tags}">
                            <span th:text="${tag.name}">方法论</span>
                            <div class="detail" th:text="${#arrays.length(tag.blogs)}">23</div>
                        </a>
                    </div>
                </div>
                <!--最新推荐-->
                <div class="ui segments m-margin-top-large">
                    <div class="ui secondary segment m-black">
                        <div class="column">
                            <i class="bookmark icon"></i>最新推荐
                        </div>
                    </div>
                    <div class="ui segment" th:each="blog : ${recommendBlogs}">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black m-text-thin"
                           th:text="${blog.title}"></a>
                    </div>

                </div>
                <canvas id="canvas" width="500" height="500"
                        style="width: 300px;height: 300px;border-radius: 15px;
                        position: absolute;right: 84em;bottom: 54.5em">cccc
                </canvas>
                <!--二维码-->
                <h4 class="ui horizontal divider header m-margin-top-large" style="color: black">扫码关注我</h4>
                <div class="ui centered card " style="width: 11em">
                    <img src="../static/images/mywetcat.png" th:src="@{/images/mywetcat.png}" alt=""
                         class="ui rounded image">
                </div>

            </div>
        </div>
    </div>
</div>

<!--底部抽取-->
<footer th:replace="_fragments :: footer"></footer>


</body>

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script type="text/javascript" th:src="@{/js/ribbon.js}"></script>
<script type="text/javascript" th:src="@{/js/mouse.js}"></script>
<script src="js/index.js" th:src="@{/js/clock.js}"></script>
<script src="js/index.js" th:src="@{/js/xian.js}"></script>
<script src="https://cdn.bootcss.com/typed.js/2.0.5/typed.js"></script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
        return false;
    });
</script>

<script>
    var typed = new Typed('.element', {
        strings: ["山随平野尽，江入大荒流。",
            "彼岸花花开彼岸，断肠草草断肝肠。",
            "我的容身之所，就是你的身边。",
            "衰兰送客咸阳道，天若有情天亦老。",
            "离开了对人的关怀，教育分文不值。",
            "世情薄，人情恶，雨送黄昏花易落。"], //输入内容, 支持html标签
        typeSpeed: 100, //打字速度
        backSpeed: 50,//回退速度
        loop: true,//开启循环
        loopCount: Infinity
    });
</script>

</html>